package org.jeecg.modules.basic.plan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.basic.plan.entity.LwgyMaterialPlanGoods;
import org.jeecg.modules.basic.plan.entity.LwgyMaterialPlanapplication;
import org.jeecg.modules.basic.plan.mapper.LwgyMaterialPlanGoodsMapper;
import org.jeecg.modules.basic.plan.mapper.LwgyMaterialPlanapplicationMapper;
import org.jeecg.modules.basic.plan.service.ILwgyMaterialPlanGoodsService;
import org.jeecg.modules.basic.plan.service.ILwgyMaterialPlanapplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Description: 物料管理申请表
 * @Author: jeecg-boot
 * @Date:   2021-04-06
 * @Version: V1.0
 */
@Service
public class LwgyMaterialPlanGoodsServiceImpl extends ServiceImpl<LwgyMaterialPlanGoodsMapper, LwgyMaterialPlanGoods> implements ILwgyMaterialPlanGoodsService {
    @Autowired
    private LwgyMaterialPlanGoodsMapper lwgyMaterialPlanGoodsMapper;
    @Override
    public List<LwgyMaterialPlanGoods> selectByMainId(String mainId) {
        return lwgyMaterialPlanGoodsMapper.selectByMainId(mainId);
    }

    @Override
    public void insertPlanGoods(List<LwgyMaterialPlanGoods> roomList) {
        lwgyMaterialPlanGoodsMapper.insertPlanGoods(roomList);
    }

    @Override
    public List<Map<String,Object>> queryPageList(String planId) {
        return lwgyMaterialPlanGoodsMapper.queryList(planId);
    }

    @Override
    public List<Map<String,Object>> queryPageListIn(String planId) {
        return lwgyMaterialPlanGoodsMapper.queryListIn(planId);
    }
}
